﻿@model Web.Models.LocationListViewModel

@{
    ViewBag.Title = "Locations";
    Layout = "~/Views/Shared/MainSiteLayout.cshtml";
}

<div class="opaqueContent">
    <h2>Punkty odbioru</h2>
    
    @if (Model != null)
    {
        foreach (RentalSystem.Data.EF.Agencies agency in Model.List)
        {
                 <div class="listItemBig">
                    @{Html.RenderPartial("_LocationDiv", agency);}
                </div>
        }
    }
    
    <div class="pagesNavigation">
        @Html.PageLinks(Model.PagingInfo, x => Url.Action("Locations", new { page = x }))
    </div>

</div>
